package com.hhf.cloud.fallback;

import com.hhf.cloud.apis.PayFeignSentinelApi;
import com.hhf.cloud.resp.Result;
import com.hhf.cloud.resp.ReturnEnum;
import org.springframework.stereotype.Component;

@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi {
    @Override
    public Result getPayByOrderNo(String orderNo) {
        return Result.fail(ReturnEnum.RC500.getCode(), "对方服务宕机或不可用，FallBack服务降级o(╥﹏╥)o");
    }
}
